#include <string.h>
#include "EchoEngine.h"
#include "Logger.h"
#include "ServerApplication.h"
using namespace xncc::user;
class ServerApp : public ServerApplication
{
  public:
    /// 构造所有的引擎
    virtual void init() override
    {
        auto echo = std::make_shared<EchoEngine>();
        addEventengine(echo);
        auto echo2 = std::make_shared<EchoEngine>(11);
        addEventengine(echo2);
    }
};

XNCC_APP_MAIN(ServerApp);